(function($){ 'use strict'; if(typeof wpcf7==='undefined'||wpcf7===null){ return; } wpcf7=$.extend({ cached: 0, inputs: [] }, wpcf7); $(function(){ wpcf7.supportHtml5=(function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; })(); $('div.wpcf7 > form').each(function(){ var $form=$(this); wpcf7.initForm($form); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.initForm=function(form){ var $form=$(form); wpcf7.setStatus($form, 'init'); $form.submit(function(event){ if(! wpcf7.supportHtml5.placeholder){ $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val('').removeClass('placeheld'); }); } if(typeof window.FormData==='function'){ wpcf7.submit($form); event.preventDefault(); }}); $('.wpcf7-submit', $form).after(''); wpcf7.toggleSubmit($form); $form.on('click', '.wpcf7-acceptance', function(){ wpcf7.toggleSubmit($form); }); $('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){ var name=$(this).attr('name'); $form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); $('.wpcf7-list-item.has-free-text', $form).each(function(){ var $freetext=$(':input.wpcf7-free-text', this); var $wrap=$(this).closest('.wpcf7-form-control'); if($(':checkbox, :radio', this).is(':checked')){ $freetext.prop('disabled', false); }else{ $freetext.prop('disabled', true); } $wrap.on('change', ':checkbox, :radio', function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); if(! wpcf7.supportHtml5.placeholder){ $('[placeholder]', $form).each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){ $form.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){ $form.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } wpcf7.resetCounter($form); $form.on('change', '.wpcf7-validates-as-url', function(){ var val=$.trim($(this).val()); if(val && ! val.match(/^[a-z][a-z0-9.+-]*:/i) && -1!==val.indexOf('.')){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; wpcf7.submit=function(form){ if(typeof window.FormData!=='function'){ return; } var $form=$(form); $('.ajax-loader', $form).addClass('is-active'); wpcf7.clearResponse($form); var formData=new FormData($form.get(0)); var detail={ id: $form.closest('div.wpcf7').attr('id'), status: 'init', inputs: [], formData: formData }; $.each($form.serializeArray(), function(i, field){ if('_wpcf7'==field.name){ detail.contactFormId=field.value; }else if('_wpcf7_version'==field.name){ detail.pluginVersion=field.value; }else if('_wpcf7_locale'==field.name){ detail.contactFormLocale=field.value; }else if('_wpcf7_unit_tag'==field.name){ detail.unitTag=field.value; }else if('_wpcf7_container_post'==field.name){ detail.containerPostId=field.value; }else if(field.name.match(/^_/)){ }else{ detail.inputs.push(field); }}); wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail); var ajaxSuccess=function(data, status, xhr, $form){ detail.id=$(data.into).attr('id'); detail.status=data.status; detail.apiResponse=data; switch(data.status){ case 'init': wpcf7.setStatus($form, 'init'); break; case 'validation_failed': $.each(data.invalid_fields, function(i, n){ $(n.into, $form).each(function(){ wpcf7.notValidTip(this, n.message); $('.wpcf7-form-control', this).addClass('wpcf7-not-valid'); $('.wpcf7-form-control', this).attr('aria-describedby', n.error_id ); $('[aria-invalid]', this).attr('aria-invalid', 'true'); }); }); wpcf7.setStatus($form, 'invalid'); wpcf7.triggerEvent(data.into, 'invalid', detail); break; case 'acceptance_missing': wpcf7.setStatus($form, 'unaccepted'); wpcf7.triggerEvent(data.into, 'unaccepted', detail); break; case 'spam': wpcf7.setStatus($form, 'spam'); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'aborted': wpcf7.setStatus($form, 'aborted'); wpcf7.triggerEvent(data.into, 'aborted', detail); break; case 'mail_sent': wpcf7.setStatus($form, 'sent'); wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': wpcf7.setStatus($form, 'failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); break; default: wpcf7.setStatus($form, 'custom-' + data.status.replace(/[^0-9a-z]+/i, '-') ); } wpcf7.refill($form, data); wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); wpcf7.toggleSubmit($form); wpcf7.resetCounter($form); } if(! wpcf7.supportHtml5.placeholder){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); } $('.wpcf7-response-output', $form) .html('').append(data.message).slideDown('fast'); $('.screen-reader-response', $form.closest('.wpcf7')).each(function(){ var $response=$(this); $('[role="status"]', $response).html(data.message); if(data.invalid_fields){ $.each(data.invalid_fields, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $li.attr('id', n.error_id); $('ul', $response).append($li); }); }}); if(data.posted_data_hash){ $form.find('input[name="_wpcf7_posted_data_hash"]').first() .val(data.posted_data_hash); }}; $.ajax({ type: 'POST', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'), data: formData, dataType: 'json', processData: false, contentType: false }).done(function(data, status, xhr){ ajaxSuccess(data, status, xhr, $form); $('.ajax-loader', $form).removeClass('is-active'); }).fail(function(xhr, status, error){ var $e=$('
    ').text(error.message); $form.after($e); }); }; wpcf7.triggerEvent=function(target, name, detail){ var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: detail }); $(target).get(0).dispatchEvent(event); }; wpcf7.setStatus=function(form, status){ var $form=$(form); var prevStatus=$form.attr('data-status'); $form.data('status', status); $form.addClass(status); $form.attr('data-status', status); if(prevStatus&&prevStatus!==status){ $form.removeClass(prevStatus); }} wpcf7.toggleSubmit=function(form, state){ var $form=$(form); var $submit=$('input:submit', $form); if(typeof state!=='undefined'){ $submit.prop('disabled', ! state); return; } if($form.hasClass('wpcf7-acceptance-as-validation')){ return; } $submit.prop('disabled', false); $('.wpcf7-acceptance', $form).each(function(){ var $span=$(this); var $input=$('input:checkbox', $span); if(! $span.hasClass('optional')){ if($span.hasClass('invert')&&$input.is(':checked') || ! $span.hasClass('invert')&&! $input.is(':checked')){ $submit.prop('disabled', true); return false; }} }); }; wpcf7.resetCounter=function(form){ var $form=$(form); $('.wpcf7-character-count', $form).each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function(target){ var $target=$(target); var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $(':input[name="' + name + '"]', $form).each(function(){ updateCount(this); $(this).keyup(function(){ updateCount(this); }); }); }); }; wpcf7.notValidTip=function(target, message){ var $target=$(target); $('.wpcf7-not-valid-tip', $target).remove(); $('').attr({ 'class': 'wpcf7-not-valid-tip', 'aria-hidden': 'true', }).text(message).appendTo($target); if($target.is('.use-floating-validation-tip *')){ var fadeOut=function(target){ $(target).not(':hidden').animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }; $target.on('mouseover', '.wpcf7-not-valid-tip', function(){ fadeOut(this); }); $target.on('focus', ':input', function(){ fadeOut($('.wpcf7-not-valid-tip', $target)); }); }}; wpcf7.refill=function(form, data){ var $form=$(form); var refillCaptcha=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); $form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }; var refillQuiz=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); $form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }; if(typeof data==='undefined'){ $.ajax({ type: 'GET', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'), beforeSend: function(xhr){ var nonce=$form.find(':input[name="_wpnonce"]').val(); if(nonce){ xhr.setRequestHeader('X-WP-Nonce', nonce); }}, dataType: 'json' }).done(function(data, status, xhr){ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }}); }else{ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }} }; wpcf7.clearResponse=function(form){ var $form=$(form); $form.siblings('.screen-reader-response').each(function(){ $('[role="status"]', this).html(''); $('ul', this).html(''); }); $('.wpcf7-not-valid-tip', $form).remove(); $('[aria-invalid]', $form).attr('aria-invalid', 'false'); $('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid'); $('.wpcf7-response-output', $form).hide().empty(); }; wpcf7.apiSettings.getRoute=function(path){ var url=wpcf7.apiSettings.root; url=url.replace(wpcf7.apiSettings.namespace, wpcf7.apiSettings.namespace + path); return url; };})(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); jQuery(document).ready(function ($){ console.log('Pass test: ' + js_options.ga); function pixelmateYouTubeInit(){ } pixelmateYouTubeInit(); function PixelmateInit(){ if(getCookie("did_consent")!="yes"&& getCookie("did_consent")!="wait"){ pixelmateGeneralBanner(); }else if(getCookie("did_consent")=="wait"){ setTimeout(function(){ pixelmateGeneralBanner(); }, 5000); }else{} function gaInit(){ var gaSettings=js_options.ga==1; var gaTracking=getCookie("ga_tracking")!="deny"; var genTracking=getCookie("gen_tracking")=="allow"; var statConsent=getCookie("statistikConsent")=="allow"; if(gaSettings&&gaTracking&&(genTracking||statConsent)){ pixelmateGaCode(); }else{ console.log("Google Analytics für diese Website deaktivert"); }} gaInit(); function fbInit(){ var fbSettings=js_options.fb==1; var fbTracking=getCookie("fb_tracking")!="deny"; var genTracking=getCookie("gen_tracking")=="allow"; var adsConsent=getCookie("adsConsent")=="allow"; var fbOptOut=js_options.fb_opt_out==1; if(fbOptOut&&!getCookie("did_consent")){ if(fbSettings&&(!getCookie("fb_tracking")||!getCookie("adsConsent"))){ pixelmateFbCode(); }else{ console.log("Facebook Tracking für diese Website deaktiviert"); }}else{ if(fbSettings&&fbTracking&&(genTracking||adsConsent)){ pixelmateFbCode(); }else{ console.log("Facebook Tracking für diese Website deaktiviert"); }} } fbInit(); if(js_options.pixelmate_tag_manager==1&&getCookie("gen_tracking")=="allow"){ pixelmateTagManager(); }else{ } if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlYoutube!=1){ pixYouTube(); }else{} pixelmateRevoke(); console.log("log: " + js_options.csp); } PixelmateInit(); function pixelmateCookieInit(){ if(getCookie("statistikConsent")=="allow"){ setCookie("ga_tracking", "allow", 14); } if(getCookie("adsConsent")=="allow"){ setCookie("fb_tracking", "allow", 14); } if(getCookie("videoConsent")=="allow"){ setCookie("youtubeConsent", "allow", 14); setCookie("vimeoConsent", "allow", 14) } if(getCookie("extraContent")=="allow"){ setCookie("gmapsConsent", "allow", 14); setCookie("twitterConsent", "allow", 14); setCookie("webinarisConsent", "allow", 14); }} pixelmateCookieInit(); function pixelmateCookiesOff(){ pixelmateCookieDelete('gen_tracking'); pixelmateCookieDelete('ga_tracking'); pixelmateCookieDelete('fb_tracking'); pixelmateCookieDelete('youtubeConsent'); pixelmateCookieDelete('vimeoConsent'); pixelmateCookieDelete('gmapsConsent'); pixelmateCookieDelete('webinarisConsent'); pixelmateCookieDelete('twitterConsent'); pixelmateCookieDelete('statistikConsent'); pixelmateCookieDelete('adsConsent'); pixelmateCookieDelete('videoConsent'); pixelmateCookieDelete('extraConsent'); deleteCookie('_ga'); deleteCookie('_gid'); deleteCookie('_fbp'); deleteCookie('_gat_gtag_' + js_options.gaId); deleteCookieFb('act'); deleteCookieFb('c_user'); } function pixelmateCookieDelete(a){ if(getCookie(a).length){ setCookie(a, "deny", -1); }} function pixelmateRevoke(){ var cb_aktiv=js_options.cb_aktiv; var cb_position=js_options.cb_position; var position=""; var cb_font_size="font-size: " + js_options.cb_font_size + "px !important; "; var cb_background="background-color: " + js_options.cb_background + " !important; "; var cb_color="color: " + js_options.cb_color + " !important;"; console.log(cb_aktiv + " " + cb_position + " " + cb_font_size + " " + cb_background + " " + cb_color); var cookieDisplay=(js_options.cb_aktiv=="1") ? " ":"display: none !important"; var revokeBtn=""; if(cb_position=="unten links"){ position="left: 60px; right: auto; "; }else{ position="left: auto; right: 60px; "; } revokeBtn=""; $("body").append(revokeBtn); $(".pixelmate-revoke").click(function (){ pixelmateSettings(); }); } function pixelmateGeneralBanner(){ var pos=js_options.design_pos; var posBanner=""; if(pos=="Unten (volle Breite)"){ pixelmateBannerBottom(); }else if(pos=="Unten rechts"){ pos="pixelmate-alt-bottom-right"; posBanner="pixelmate-general-banner-alt-bottom-right"; }else if(pos=="Unten links"){ pos="pixelmate-alt-bottom-left"; posBanner="pixelmate-general-banner-alt-bottom-left"; }else{ pixelmateBannerFullscreen(); } function pixelmateBannerFullscreen(){ var boxColorText="color: " + js_options.box_color_text + " !important; "; var boxBgColor="background-color: " + js_options.box_bg_color + " !important; "; var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":""; var boxMargin="margin: " + js_options.box_margin + " !important; "; var boxBorder="border: " + js_options.box_border + " !important; "; var boxPadding="padding: " + js_options.box_padding + " !important; "; var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; "; var hFontSize=js_options.box_h_font_size; var fontSize=js_options.box_font_size; var lineHeight=js_options.box_line_height; var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color; var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color; var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width; var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color; var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius; var btnBgColor="background-color: " + btnBgColorPre + " !important; "; var btnColor="color: " + btnColorPre + " !important; "; var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; "; var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; "; var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; "; var colorBtnText="color: " + js_options.color_btn_text + " !important; "; var boxShadow=""; var dse=js_options.dse; var imp=js_options.impressum; var dseText=(js_options.gen_dse_text==null) ? "Datenschutz":js_options.gen_dse_text; var impText=(js_options.gen_impressum_text==null) ? "Impressum":js_options.gen_impressum_text; if(js_options.dse_extern==1){ dse=js_options.dse_extern_url; }else{ dse=js_options.dse; } console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern); if(js_options.impressum_extern==1){ imp=js_options.impressum_extern_url; }else{ imp=js_options.impressum; } if(js_options.box_shadow==1){ boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; "; }else{ } let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'"; let headingStyle="style='" + boxColorText + "'"; let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " margin-bottom: 12px; padding: 12px 24px !important'"; let genHeadingText=(js_options.gen_individuell==1) ? js_options.gen_heading:js_options.gen_heading_default; let genHeading="

    " + genHeadingText + "

    "; let genNoticeText=(js_options.gen_individuell==1) ? js_options.gen_text:"Um diese Website zu betreiben, ist es für uns notwendig Cookies zu verwenden. Einige Cookies sind erforderlich, um die Funktionalität zu gewährleisten, andere brauchen wir für unsere Statistik und wieder andere helfen uns dir nur die Werbung anzuzeigen, die dich interessiert. Mehr erfährst du in unserer Datenschutzerklärung"; let genNotice="
    " + genNoticeText + "
    "; let genBtnAllow=(js_options.gen_individuell==1&&js_options.gen_allow_text!="") ? js_options.gen_allow_text:"ALLE ZULASSEN"; let genBtnDeny=(js_options.gen_individuell==1&&js_options.gen_deny_text!="") ? js_options.gen_deny_text:"nicht mehr als nötig"; let genBtnSingle=(js_options.gen_individuell==1&&js_options.gen_single_text!="") ? js_options.gen_single_text:"Einstellungen"; let genBtns="
    "; let genFooter=""; let genBanner="
    " + genHeading + genNotice + genBtns + genFooter + "
    "; let genWrapper="
    " + genBanner + "
    "; $("body").append(genWrapper); } function pixelmateBannerBottom(){ var boxColorText="color: " + js_options.box_color_text + " !important; "; var boxBgColor="background-color: " + js_options.box_bg_color + " !important; "; var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":""; var boxMargin="margin: " + js_options.box_margin + " !important; "; var boxBorder="border: " + js_options.box_border + " !important; "; var boxPadding="padding: " + js_options.box_padding + " !important; "; var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; "; var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color; var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color; var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width; var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color; var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius; var btnBgColor="background-color: " + btnBgColorPre + " !important; "; var btnColor="color: " + btnColorPre + " !important; "; var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; "; var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; "; var hFontSize=js_options.box_h_font_size; var fontSize=js_options.box_font_size; var lineHeight=js_options.box_line_height; var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; "; var colorBtnText="color: " + js_options.color_btn_text + " !important; "; var boxShadow=""; var dse=js_options.dse; var imp=js_options.impressum; var dseText=(js_options.gen_dse_text==null) ? "Datenschutz":js_options.gen_dse_text; var impText=(js_options.gen_impressum_text==null) ? "Impressum":js_options.gen_impressum_text; if(js_options.dse_extern==1){ dse=js_options.dse_extern_url; }else{ dse=js_options.dse; } console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern); if(js_options.impressum_extern==1){ imp=js_options.impressum_extern_url; }else{ imp=js_options.impressum; } if(js_options.box_shadow==1){ boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; "; }else{ } let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'"; let headingStyle="style='" + boxColorText + "'"; let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " padding: 12px 24px !important'"; let genHeadingText=(js_options.gen_individuell==1) ? js_options.gen_heading:"Wir verwenden Cookies"; let genHeading="

    " + genHeadingText + "

    "; let genNoticeText=(js_options.gen_individuell==1) ? js_options.gen_text:"Um diese Website zu betreiben, ist es für uns notwendig Cookies zu verwenden. Einige Cookies sind erforderlich, um die Funktionalität zu gewährleisten, andere brauchen wir für unsere Statistik und wieder andere helfen uns dir nur die Werbung anzuzeigen, die dich interessiert. Mehr erfährst du in unserer Datenschutzerklärung"; let genNotice="
    " + genNoticeText + "
    "; let genBtnAllow=(js_options.gen_individuell==1&&js_options.gen_allow_text!="") ? js_options.gen_allow_text:"ALLE ZULASSEN"; let genBtnDeny=(js_options.gen_individuell==1&&js_options.gen_deny_text!="") ? js_options.gen_deny_text:"nicht mehr als nötig"; let genBtnSingle=(js_options.gen_individuell==1&&js_options.gen_single_text!="") ? js_options.gen_single_text:"einzeln bestätigen"; let genBtns=""; let genFooter=""; let genBanner="
    " + genHeading + "
    " + genNotice + genBtns + "
    " + "
    " + genFooter + "
    "; let genWrapper="
    " + genBanner + "
    "; $("body").append(genWrapper); } if(pos="pixelmate-alt-bottom"){ }else{} $(".pixelmate-general-allow, .pixelmate-general-allow-bottom").click(function (){ var h=$(".pixelmate-wrapper-bottom").height(); setCookie("gen_tracking", "allow", 14); setCookie("did_consent", "yes", 14); setCookie("ga_tracking", "allow", 14); setCookie("fb_tracking", "allow", 14); setCookie("youtubeConsent", "allow", 14); setCookie("vimeoConsent", "allow", 14); setCookie("gmapsConsent", "allow", 14); setCookie('statistikConsent', "allow", 14); setCookie('adsConsent', "allow", 14); setCookie('videoConsent', "allow", 14); setCookie('extraConsent', "allow", 14); $(".pixelmate-gen-wrapper").fadeOut(800); $(".pixelmate-wrapper-bottom").animate({ bottom: '-' + h + 'px' }, 800); pixelmateGaCode(); pixelmateFbCode(); location.reload(); }); $(".pixelmate-general-deny, .pixelmate-general-deny-bottom").click(function (){ var h=$(".pixelmate-wrapper-bottom").height(); setCookie('gen_tracking', 'deny', 14); setCookie('did_consent', 'yes', 14); setCookie("ga_tracking", "deny", 14); setCookie("fb_tracking", "deny", 14); setCookie("youtubeConsent", "deny", 14); setCookie("vimeoConsent", "deny", 14); setCookie("gmapsConsent", "deny", 14); setCookie('statistikConsent', "deny", 14); setCookie('adsConsent', "deny", 14); setCookie('videoConsent', "deny", 14); setCookie('extraConsent', "deny", 14); $(".pixelmate-general-banner-wrapper").fadeOut(800); $(".pixelmate-wrapper-bottom").animate({ bottom: '-' + h + 'px' }, 800); if(js_options.fb_opt_out==1){ location.reload(); }else{}}); $(".pixelmate-general-single, .pixelmate-general-single-bottom").click(function (){ var h=$(".pixelmate-wrapper-bottom").height(); setCookie('gen_tracking', 'single', 14); setCookie("ga_tracking", "deny", 14); setCookie("fb_tracking", "deny", 14); setCookie("youtubeConsent", "deny", 14); setCookie("vimeoConsent", "deny", 14); setCookie("gmapsConsent", "deny", 14); $(".pixelmate-general-banner-wrapper").fadeOut(800); $(".pixelmate-wrapper-bottom").animate({ bottom: '-' + h + 'px' }, 800); pixelmateSettings(); }); $(".pixelmate-general-dse-btn").click(function (){ setCookie('did_consent', 'wait', 14); $(".pixelmate-general-banner-wrapper").fadeOut(800); }); $(".pixelmate-general-imp-btn").click(function (){ setCookie("did_consent", "wait", 14); $(".pixelmate-general-banner-wrapper").fadeOut(800); }); } function pixelmateFixPosBottom(){ let h=$(window).height(); let bh=$(".pixelmate-general-banner-alt-bottom").height(); let top=h - bh; if(top < 0){ top=0; }else{} $(".pixelmate-general-banner-alt-bottom").css({ top: top + "px !important", bottom: "auto" }); console.log("Banner fixed: " + top); } function pixelmateSettings(){ var boxColorText="color: " + js_options.box_color_text + " !important; "; var boxBgColor="background-color: " + js_options.box_bg_color + " !important; "; var bgVerlauf=(js_options.box_bg_verlauf==1) ? "background: linear-gradient(to top right, " + js_options.box_bg_verlauf_1 + " , " + js_options.box_bg_verlauf_2 + ");":""; var boxMargin="margin: " + js_options.box_margin + " !important; "; var boxBorder="border: " + js_options.box_border + " !important; "; var boxPadding="padding: " + js_options.box_padding + " !important; "; var boxBorderRadius="border-radius: " + js_options.box_border_radius + " !important; "; var btnBgColorPre=(js_options.btn_bg_color==null) ? "red":js_options.btn_bg_color; var btnColorPre=(js_options.btn_color==null) ? "white":js_options.btn_color; var btnBorderWidthPre=(js_options.btn_border_width==null) ? "0":js_options.btn_border_width; var btnBorderColorPre=(js_options.btn_border_color==null) ? "white":js_options.btn_border_color; var btnBorderRadiusPre=(js_options.btn_border_radius==null) ? "4":js_options.btn_border_radius; var btnBgColor="background-color: " + btnBgColorPre + " !important; "; var btnColor="color: " + btnColorPre + " !important; "; var btnBorder="border: " + btnBorderWidthPre + "px solid " + btnBorderColorPre + " !important; "; var btnBorderRadius="border-radius: " + btnBorderRadiusPre + "px !important; "; var colorBtnBg="background-color: " + js_options.color_btn_bg + " !important; "; var colorBtnText="color: " + js_options.color_btn_text + " !important; "; var boxShadow=""; var dse=js_options.dse; var imp=js_options.impressum; var dseText=js_options.gen_dse_text; var impText=js_options.gen_impressum_text; var dseText=js_options.gen_individuell ? js_options.gen_dse_text:"Datenschutzerklärung"; var dseHinweis=js_options.pix_settings_check ? js_options.pix_settings_hinweis_dse:"Genauere Informationen über die auf dieser Website genutzten Dienste findest du in der Datenschutzerklärung"; if(js_options.dse_extern==1){ dse=js_options.dse_extern_url; }else{ dse=js_options.dse; } console.log("imp_dse: " + js_options.impressum_extern + "; " + js_options.dse_extern); if(js_options.impressum_extern==1){ imp=js_options.impressum_extern_url; }else{ imp=js_options.impressum; } if(js_options.box_shadow==1){ boxShadow="box-shadow: " + js_options.box_shadow_h + "px " + js_options.box_shadow_v + "px " + js_options.box_shadow_blur + "px " + js_options.box_shadow_color + "; "; }else{ } let bannerStyle="style='" + boxColorText + boxBgColor + bgVerlauf + boxMargin + boxBorder + boxPadding + boxBorderRadius + boxShadow + "'"; let headingStyle="style='" + boxColorText + "'"; let btnStyle="style='" + btnBgColor + btnColor + btnBorder + btnBorderRadius + " padding: 12px 24px !important'"; var header="
    " + js_options.pix_settings_uberschrift + "
    "; var notwendig="
    " + js_options.pix_settings_notwendige_c + "
    "; var statistik=(js_options.pix_settings_statistik_aus!=1) ? "
    " + js_options.pix_settings_statistik + "
    ":""; var werbung=(js_options.pix_settings_werbung_aus!=1) ? "
    " + js_options.pix_settings_werbung + "
    ":""; var videos=(js_options.pix_settings_videos_aus!=1) ? "
    " + js_options.pix_settings_videos + "
    ":""; var externe=(js_options.pix_settings_sonstige_aus!=1) ? "
    " + js_options.pix_settings_sonstige + "
    ":""; var btn="" var content="
    " + notwendig + statistik + werbung + videos + externe + "
    " + btn + "
    "; var footer=""; var settingsBanner=""; $("body").append(settingsBanner); $(".settings-banner-wrapper").fadeIn(800); if(getCookie("statistikConsent")=="allow"){ $("#pixelmate-statistik").prop('checked', true); }else{} if(getCookie("adsConsent")=="allow"){ $("#pixelmate-werbung").prop('checked', true); }else{} if(getCookie("videoConsent")=="allow"){ $("#pixelmate-videos").prop('checked', true); console.log("videoConsent true"); }else{} if(getCookie("extraConsent")=="allow"){ $("#pixelmate-externe").prop('checked', true); }else{} $(".settings-btn").click(function(){ var checkStat=$("#pixelmate-statistik").is(':checked'); var checkAds=$("#pixelmate-werbung").is(':checked'); var checkVids=$("#pixelmate-videos").is(':checked'); var checkEx=$("#pixelmate-externe").is(':checked'); if(checkStat){ setCookie("ga_tracking", "allow", 14); setCookie("statistikConsent", "allow", 14); }else{ setCookie("ga_tracking", "deny", 14); setCookie("statistikConsent", "deny", 14); } if(checkAds){ setCookie("fb_tracking", "allow", 14); setCookie("adsConsent", "allow", 14); }else{ setCookie("fb_tracking", "deny", 14); setCookie("adsConsent", "deny", 14); } if(checkVids){ setCookie("youtubeConsent", "allow", 14); setCookie("vimeoConsent", "allow", 14); setCookie("videoConsent", "allow", 14); }else{ setCookie("youtubeConsent", "deny", 14); setCookie("vimeoConsent", "deny", 14); setCookie("videoConsent", "deny", 14); } if(checkEx){ setCookie("gmapsConsent", "allow", 14); setCookie("webinarisConsent", "allow", 14); setCookie("twitterConsent", "allow", 14); setCookie("extraConsent", "allow", 14); }else{ setCookie("gmapsConsent", "deny", 14); setCookie("webinarisConsent", "deny", 14); setCookie("twitterConsent", "deny", 14); setCookie("extraConsent", "deny", 14); } if(checkStat&&checkAds&&checkVids&&checkEx){ setCookie("gen_tracking", "allow", 14); }else{ setCookie("gen_tracking", "deny", 14); } setCookie("did_consent", "yes", 14); $(".settings-banner-wrapper").fadeOut(); location.reload(); }) } function pixelmateGaCode(){ var lenScript=$('script').filter(function (){ return ($(this).attr('src')=="https://www.googletagmanager.com/gtag/js?id=" + js_options.gaId); }).length; if(lenScript===0){ let gaAno=(js_options.gaAno==1) ? "true":"false"; $.getScript("https://www.googletagmanager.com/gtag/js?id=" + js_options.gaId); window.dataLayer=window.dataLayer||[]; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', js_options.gaId, { 'anonymize_ip': gaAno }); pixelmateGaLoaded=1; }} function pixelmateFbCode(){ let pixel=js_options.fbId; ! function (f, b, e, v, n, t, s){ if(f.fbq) return; n=f.fbq=function (){ n.callMethod ? n.callMethod.apply(n, arguments):n.queue.push(arguments) }; if(!f._fbq) f._fbq=n; n.push=n; n.loaded = !0; n.version='2.0'; n.queue=[]; t=b.createElement(e); t.async = !0; t.src=v; s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s) }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', pixel); fbq('track', 'PageView'); } console.log("issingle: " + js_options.issingle); console.log("Test Blog: " + js_options.test); function pixelmateTagManager(){ console.log("tagmanager"); var gtm=js_options.pixelmate_gtm; var content=""; var body=""; if(gtm=="GTM-000000"||gtm==""||gtm==" "){ }else{ jQuery('head').append(content); jQuery('body').prepend(body); }} function pixYouTube(){ var youtube_exists=false; var youtubeCookie=getCookie("youtubeConsent"); console.log("youtube function here"); if(((jQuery("iframe[src*='youtube']").length)||(jQuery("div[src*='youtu.be]")))&&(youtubeCookie!="allow")){ var youtube_finder=jQuery("iframe[src*='youtube']"); if(jQuery("div[src*='youtu.be]").length){ youtube_finder=jQuery("div[src*='youtu.be]"); }else{} var youtube_exists=true; var youtube_length=youtube_finder.length; var youtube_select=youtube_finder; var youtube_heading="YouTube aktivieren?"; var youtube_text="Um Videos auf dieser Seite sehen zu können, müssen Cookies von YouTube gesetzt werden. Mehr dazu findest du in den Datenschutzbestimmungen von YouTube. "; var dse=js_options.dse; var imp=js_options.impressum; var dseText=js_options.gen_dse_text; var impText=js_options.gen_impressum_text; var dseText=js_options.gen_individuell ? js_options.gen_dse_text:"Datenschutzerklärung"; var dseHinweis=js_options.pix_settings_check ? js_options.pix_settings_hinweis_dse:"Genauere Informationen über die auf dieser Website genutzten Dienste findest du in der Datenschutzerklärung"; if(js_options.dse_extern==1){ dse=js_options.dse_extern_url; }else{ dse=js_options.dse; } if(js_options.youtubeIn==1){ youtube_heading=(js_options.youtubeHeading=="") ? youtube_heading:js_options.youtubeHeading; youtube_text=(js_options.youtubeText=="") ? youtube_text:js_options.youtubeText; console.log("youtubeIn"); } youtube_select.each(function (){ youtube_select.parent().wrap('
    '); jQuery('.cleaner-youtube').empty().each(function (){ jQuery(this).append(""); }) }) }else{} jQuery('.aktivate-youtube').click(function (){ allowYoutube(); location.reload(true); }); } function allowYoutube(){ setCookie('youtubeConsent', 'allow', 365); } function dismissYoutube(){ setCookie('youtubeConsent', 'dismiss', 365); } function pixelmateVimeoInit(){ if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlVimeo!=1){ pixVimeo(); }else{}} pixelmateVimeoInit(); function pixVimeo(){ var vimeoCookie=getCookie("vimeoConsent"); var vimeo_length=jQuery("iframe[src*='vimeo']").length; var vimeo_select=jQuery("iframe[src*='vimeo']"); var vimeo_heading="Vimeo aktivieren?"; var vimeo_text="Um Vimeo Videos anzeigen zu können, müssen Cookies von Vimeo gespeichert werden. Mehr dazu findest du in den Datenschutzbestimmungen von Vimeo. "; if(js_options.vimeoIn==1){ vimeo_heading=(js_options.vimeoHeading=="") ? vimeo_heading:js_options.vimeoHeading; vimeo_text=(js_options.vimeoText=="") ? vimeo_text:js_options.vimeoText; console.log("vimeoIn"); } if((jQuery("iframe[src*='vimeo']").length)&&vimeoCookie!="allow"){ console.log("Vimeo found"); vimeo_length=jQuery("iframe[src*='vimeo']").length; vimeo_select=jQuery("iframe[src*='vimeo']"); console.log("Vimeo found on this site:" + vimeoCookie); jQuery("iframe[src*='vimeo']").each(function (){ vimeo_select.parent().wrap('
    '); jQuery('.cleaner-vimeo').empty().each(function (){ jQuery(this).append(""); }) }) }else{}} jQuery('.aktivate-vimeo').click(function (){ setCookie('vimeoConsent', 'allow', 365); location.reload(true); }); function pixelmateGmapsInit(){ if(js_options.csp==1&&getCookie("gen_tracking")!="allow"&&js_options.wlGmaps!=1){ pixGmaps(); }else{}} pixelmateGmapsInit(); function allowGMaps(){ setCookie('gmapsConsent', 'allow', 365); } function dismissGMaps(){ setCookie('gmapsConsent', 'dismiss', 365); } function pixGmaps(){ console.log("gmaps fn here"); var gmapsCookie=getCookie("gmapsConsent"); var gmaps_length=jQuery("iframe[src*='maps.google.com']").length; var gmaps_select=jQuery("iframe[src*='maps.google.com']"); if(jQuery("iframe[src*='maps.google.com']").length){ }else{ if(jQuery(".google-map").length){ gmaps_select=jQuery(".google-map"); console.log("gmaps found on this site:" + gmapsCookie); }else{ console.log("gmaps found on this site: No selector found" + gmapsCookie); }} if(gmaps_select.length&&gmapsCookie!="allow"&&getCookie("gen_tracking")!="allow"){ console.log("gmaps found on this site:" + gmapsCookie); gmaps_select.each(function (){ gmaps_select.parent().parent().wrap('
    '); jQuery(".aktivate-gmaps").css("color", "white !important"); jQuery('.pixelmate-cleaner-gmaps').empty().each(function (){ jQuery(this).append(""); }) }) }else{}} function aktivateGmaps(){ jQuery('.aktivate-gmaps').click(function (){ allowGMaps(); location.reload(true); }) } aktivateGmaps(); function pixelmateYouTubeSc(){ var youtube_heading="YouTube aktivieren?"; var youtube_text="Um Videos auf dieser Seite sehen zu können, müssen Cookies von YouTube gesetzt werden. Mehr dazu findest du in den Datenschutzbestimmungen von YouTube. "; if(js_options.youtubeIn==1){ youtube_heading=(js_options.youtubeHeading=="") ? youtube_heading:js_options.youtubeHeading; youtube_text=(js_options.youtubeText=="") ? youtube_text:js_options.youtubeText; console.log("youtubeIn"); } if(getCookie("youtubeConsent")=="allow"||getCookie("gen_tracking")=="allow"){ pixelmateYouTubeScCode(); }else{ $(".pixelmate-youtube-shortcode").each(function (){ $(this).append("

    YouTube aktivieren?

    " + youtube_text + "
    Datenschutz
    "); }); } $('.aktivate-youtube-shortcode').click(function (){ setCookie('youtubeConsent', 'allow', 365); pixelmateYouTubeScCode(); }); } pixelmateYouTubeSc(); function pixelmateYouTubeScCode(){ $(".pixelmate-youtube-shortcode").each(function (){ $(this).append(''); }); } function pixelmateWebinarisInit(){ if(js_options.webinaris_load==1&&getCookie("gen_tracking")!="allow"&&getCookie("webinarisConsent")!="allow"){ pixelmateWebinarisBanner(); }else{ pixelmateWebinaris(); }} pixelmateWebinarisInit(); function pixelmateWebinaris(){ if((getCookie("webinarisConsent")=="allow"&&js_options.webinaris_load==1)||(getCookie("gen_tracking")=="allow"&&js_options.webinaris_load==1)){ $.getScript("https://webinaris.co/public_html/js/quellcode.js", function (){ $('.pixelmate-webinaris').append(js_options.webinaris); console.log("webinaris aktive"); }); }else{ pixelmateWebinarisBanner(); console.log(js_options.webinaris_load); }} function pixelmateWebinarisBanner(){ let webinarisHeading="Webinaris aktivieren?"; let webinarisText="Hier sollte eigentlich ein Formular von Webinaris stehen. Beim anzeigen werden Cookies von Webinaris gesetzt, die für Tracking und Werbung verwendet werden."; jQuery('.pixelmate-webinaris').append(""); $(".aktivate-webinaris").click(function (){ setCookie('webinarisConsent', 'allow', 365); $(".pixelmate-webinaris-consent-wrapper").fadeOut(); pixelmateWebinaris(); }) } function pixelmateShortcodeClicks(){ $(".pixelmate-allow").click(function (){ setCookie("gen_tracking", "allow", 14); setCookie("ga_tracking", "allow", 14); setCookie("fb_tracking", "allow", 14); setCookie("youtubeConsent", "allow", 14); setCookie("vimeoConsent", "allow", 14); setCookie("gmapsConsent", "allow", 14); location.reload(true); }); $(".pixelmate-deny").click(function (){ setCookie('gen_tracking', 'deny', 365); setCookie("gen_tracking", "deny", 14); setCookie("ga_tracking", "deny", 14); setCookie("fb_tracking", "deny", 14); setCookie("youtubeConsent", "deny", 14); setCookie("vimeoConsent", "deny", 14); setCookie("gmapsConsent", "deny", 14); location.reload(true); }); $(".pixelmate-ga-allow").click(function (){ setCookie("ga_tracking", "allow", 14); location.reload(true); }); $(".pixelmate-ga-deny").click(function (){ setCookie("ga_tracking", "deny", 14); location.reload(true); }); $(".pixelmate-fb-allow").click(function (){ setCookie("fb_tracking", "allow", 14); location.reload(true); }); $(".pixelmate-fb-deny").click(function (){ setCookie("fb_tracking", "deny", 14); location.reload(true); }); $(".pixelmate-youtube-allow").click(function (){ setCookie("youtubeConsent", "allow", 14); location.reload(true); }); $(".pixelmate-youtube-deny").click(function (){ setCookie("youtubeConsent", "deny", 14); location.reload(true); }); $(".pixelmate-vimeo-allow").click(function (){ setCookie("vimeoConsent", "allow", 14); location.reload(true); }); $(".pixelmate-vimeo-deny").click(function (){ setCookie("vimeoConsent", "deny", 14); location.reload(true); }); $(".pixelmate-gmaps-allow").click(function (){ setCookie("gmapsConsent", "allow", 14); location.reload(true); }); $(".pixelmate-gmaps-deny").click(function (){ setCookie("gmapsConsent", "yes", 14); location.reload(true); }); } pixelmateShortcodeClicks(); function pixelmateShortcodeDseDetector(){ if($(".pixelmate-dse-table").length&&getCookie("gen_tracking")=="allow"){ $(".pixelmate-allow").css("opacity", "0.3"); $(".pixelmate-deny").css("opacity", "1"); }else{ $(".pixelmate-allow").css("opacity", "1"); $(".pixelmate-deny").css("opacity", "0.3"); } if($(".pixelmate-dse-table").length&&getCookie("ga_tracking")=="allow"){ $(".pixelmate-ga-allow").css("opacity", "0.3"); $(".pixelmate-ga-deny").css("opacity", "1"); }else{ $(".pixelmate-ga-allow").css("opacity", "1"); $(".pixelmate-ga-deny").css("opacity", "0.3"); } if($(".pixelmate-dse-table").length&&getCookie("fb_tracking")=="allow"){ $(".pixelmate-fb-allow").css("opacity", "0.3"); $(".pixelmate-fb-deny").css("opacity", "1"); }else{ $(".pixelmate-fb-allow").css("opacity", "1"); $(".pixelmate-fb-deny").css("opacity", "0.3"); } if($(".pixelmate-dse-table").length&&getCookie("gmapsConsent")=="allow"){ $(".pixelmate-gmaps-allow").css("opacity", "0.3"); $(".pixelmate-gmaps-deny").css("opacity", "1"); }else{ $(".pixelmate-gmaps-allow").css("opacity", "1"); $(".pixelmate-gmaps-deny").css("opacity", "0.3"); } if($(".pixelmate-dse-table").length&&getCookie("youtubeConsent")=="allow"){ $(".pixelmate-youtube-allow").css("opacity", "0.3"); $(".pixelmate-youtube-deny").css("opacity", "1"); }else{ $(".pixelmate-youtube-allow").css("opacity", "1"); $(".pixelmate-youtube-deny").css("opacity", "0.3"); } if($(".pixelmate-dse-table").length&&getCookie("vimeoConsent")=="allow"){ $(".pixelmate-vimeo-allow").css("opacity", "0.3"); $(".pixelmate-vimeo-deny").css("opacity", "1"); }else{ $(".pixelmate-vimeo-allow").css("opacity", "1"); $(".pixelmate-vimeo-deny").css("opacity", "0.3"); }} pixelmateShortcodeDseDetector() function pixelmateAddScripts(){ var a=""; if(js_options.pixelmate_script==1&&getCookie("adsConsent")=="allow"){ $("head").append(js_options.pixelmate_script_code_head); $("body").prepend(js_options.pixelmate_script_code_body); $("footer").append(js_options.pixelmate_script_code_footer); }else{}} pixelmateAddScripts(); function pixelmateAddScriptsStats(){ var a=""; if(js_options.pixelmate_script==1&&getCookie('statistikConsent')=="allow"){ $("head").append(js_options.pixelmate_script_code_head_stats); $("body").prepend(js_options.pixelmate_script_code_body_stats); $("footer").append(js_options.pixelmate_script_code_footer_stats); }else{}} pixelmateAddScriptsStats(); function setCookie(cname, cvalue, exdays){ var d=new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires="expires=" + d.toUTCString(); document.cookie=cname + "=" + cvalue + ";" + expires + ";path=/; SameSite=None; Secure"; } function getCookie(cname){ var name=cname + "="; var ca=document.cookie.split(';'); for (var i=0; i < ca.length; i++){ var c=ca[i]; while (c.charAt(0)==' '){ c=c.substring(1); } if(c.indexOf(name)==0){ return c.substring(name.length, c.length); }} return ""; } function deleteCookie(cookie){ var cookie=cookie; var domain=js_options.domain; var fullDomain=js_options.full_domain; var cookieName=getCookie(cookie); var a=/^(https?|http):\/\//; fullDomain=fullDomain.replace(a, ''); document.cookie=cookie + '=; Path=/; Domain=.' + domain + '; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; document.cookie=cookie + '=; Path=/; Domain=.' + fullDomain + '; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; document.cookie=cookie + '=; Path=/; Domain=' + fullDomain + '; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } function deleteCookieFb(cookie){ var cookie=cookie; var fbDomain=".facebook.com"; document.cookie=cookie + '=; Path=/; Domain=' + fbDomain + '; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; }}); (function(){ document.addEventListener('DOMContentLoaded', function(event){ wpcf7_recaptcha.execute=function(action){ grecaptcha.execute(wpcf7_recaptcha.sitekey, { action: action } ).then(function(token){ var event=new CustomEvent('wpcf7grecaptchaexecuted', { detail: { action: action, token: token, }, }); document.dispatchEvent(event); }); }; wpcf7_recaptcha.execute_on_homepage=function(){ wpcf7_recaptcha.execute(wpcf7_recaptcha.actions[ 'homepage' ]); }; wpcf7_recaptcha.execute_on_contactform=function(){ wpcf7_recaptcha.execute(wpcf7_recaptcha.actions[ 'contactform' ]); }; grecaptcha.ready(wpcf7_recaptcha.execute_on_homepage ); document.addEventListener('change', wpcf7_recaptcha.execute_on_contactform ); document.addEventListener('wpcf7submit', wpcf7_recaptcha.execute_on_homepage ); }); document.addEventListener('wpcf7grecaptchaexecuted', function(event){ var fields=document.querySelectorAll("form.wpcf7-form input[name='_wpcf7_recaptcha_response']" ); for(var i=0; i < fields.length; i++){ var field=fields[ i ]; field.setAttribute('value', event.detail.token); }}); })(); !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3", x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
    ")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o li > :first-child").add(e.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=o(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():o()}},_createIcons:function(){var e,t=this.options.icons;t&&(e=o(""),this._addClass(e,"ui-accordion-header-icon","ui-icon "+t.header),e.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,t.header)._addClass(e,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"===e?this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t)&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=o.ui.keyCode,i=this.headers.length,a=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(a+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(a-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(o(e.target).attr("tabIndex",-1),o(s).attr("tabIndex",0),o(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===o.ui.keyCode.UP&&e.ctrlKey&&o(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=o()):!1===e.active?this._activate(0):this.active.length&&!o.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=o()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,a=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=o(this),t=e.uniqueId().attr("id"),i=e.next(),a=i.uniqueId().attr("id");e.attr("aria-controls",a),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=a.height(),this.element.siblings(":visible").each(function(){var e=o(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=o(this).outerHeight(!0)}),this.headers.next().each(function(){o(this).height(Math.max(0,i-o(this).innerHeight()+o(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=o(this).is(":visible");e||o(this).show(),i=Math.max(i,o(this).css("height","").height()),e||o(this).hide()}).height(i))},_activate:function(e){e=this._findActive(e)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:o.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):o()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&o.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,a=o(e.currentTarget),s=a[0]===i[0],n=s&&t.collapsible,h=n?o():a.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:n?o():a,newPanel:h};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,r)||(t.active=!n&&this.headers.index(a),this.active=s?o():a,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),t.icons&&(h=i.children(".ui-accordion-header-icon"),this._removeClass(h,null,t.icons.activeHeader)._addClass(h,null,t.icons.header)),s)||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),t.icons&&(e=a.children(".ui-accordion-header-icon"),this._removeClass(e,null,t.icons.header)._addClass(e,null,t.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active"))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(o(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){function a(){n._toggleComplete(t)}var s,n=this,h=0,r=e.css("box-sizing"),o=e.length&&(!i.length||e.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand (e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand (e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand (e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})(); (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})();